<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			let str = '"<p>123213<img src="/img/202005/53fd5dd2d146d0eac393802cca735b42.png" alt="图像"></p><p><br></p><p>123213<img src="/img/202005/53fd5dd2d146d0eac393802cca735b42.png" alt="图像"></p><p><br></p><p>123213<img src="/img/202005/53fd5dd2d146d0eac393802cca735b42.png" alt="图像"></p><p><br></p>"'
			let reg = /(<img\s+src=")(\/img)/g
			let newContent = str.replace(reg,(...[content,$1,$2])=>{
				return $1 + 'https://hook.qwintek.cn/retail_data' +$2
			})
			console.log(newContent);
			let url = 'https://hook.qwintek.cn/retail_data'
			let reg2 = new RegExp(url,'g')
			// let reg2 = /https:\/\/hook.qwintek.cn\/retail_data/g
			let newContent2 = newContent.replace(reg2,'')
			console.log(newContent2);
		</script>
	</body>
</html>
